//status
`define WDtype_aluans    2'b00
`define WDtype_dmrd      2'b01
`define WDtype_pc8       2'b10

`define Atype_rt     2'b00
`define Atype_rs     2'b01
`define Btype_rt     2'b00
`define Btype_imm    2'b01
`define Btype_rs     2'b10

`define ALU_add     4'b0000
`define ALU_sub     4'b0001
`define ALU_or      4'b0010
`define ALU_lui     4'b0101

`define EXT_sign    1'b1
`define EXT_unsign  1'b0

`define BJP_beq     3'b001

`define NPC_pc4     3'b000
`define NPC_jal     3'b001
`define NPC_jr      3'b010
`define NPC_b       3'b011

//opcode and func
`define op_R 		6'b000000
`define fun_ADDU    6'b100001
`define fun_SUBU    6'b100011
`define op_ORI      6'b001101
`define op_LUI      6'b001111

// Jump
`define op_J        6'b000010
`define op_JAL      6'b000011
`define op_JR       6'b000000
`define fun_JR      6'b001000
`define op_JALR     6'b000000
`define fun_JALR    6'b001001
`define op_BEQ		6'b000100	

//Memory
`define op_LW       6'b100011
`define op_SW       6'b101011




